<?php
namespace app\common\model;
use app\common\model\CommonModel;
use think\Db;

class User extends CommonModel
{
	/**
	* 获取用户列表
	*/
	public function getUserList($limit = 10,$page)
	{
	   $item = $this->paginate($limit,false,['page'=>$page]);
       return empty($item) ? array():$item->toArray();
	}
    /**
    * 获取用户列表信息 无分页
    */
    public function userList($where,$field)
	{
	   $item = $this->where($where)->field($field)->select();
       return empty($item) ? array():$item->toArray();
	}
}
